package io.renren.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.dao.AccidentInsuranceManagementDao;
import io.renren.entity.AccidentInsuranceManagementEntity;
import io.renren.service.AccidentInsuranceManagementService;



@Service("accidentInsuranceManagementService")
public class AccidentInsuranceManagementServiceImpl implements AccidentInsuranceManagementService {
	@Autowired
	private AccidentInsuranceManagementDao accidentInsuranceManagementDao;
	
	@Override
	public AccidentInsuranceManagementEntity queryObject(Integer id){
		return accidentInsuranceManagementDao.queryObject(id);
	}
	
	@Override
	public List<AccidentInsuranceManagementEntity> queryList(Map<String, Object> map){
		return accidentInsuranceManagementDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return accidentInsuranceManagementDao.queryTotal(map);
	}
	
	@Override
	public void save(AccidentInsuranceManagementEntity accidentInsuranceManagement){
		accidentInsuranceManagementDao.save(accidentInsuranceManagement);
	}

	@Override
	public void update(AccidentInsuranceManagementEntity accidentInsuranceManagement){
		accidentInsuranceManagementDao.update(accidentInsuranceManagement);
	}
	
	@Override
	public void delete(Integer id){
		accidentInsuranceManagementDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		accidentInsuranceManagementDao.deleteBatch(ids);
	}
	
}
